import type { Dayjs } from 'dayjs';

// 报告类型
export type ReportType = 'government' | 'enterprise' | 'institution' | 'all';

// 报告基础数据
interface BaseReport {
  title: string;
  type: ReportType;
  content: string;
  summary?: string;
  tags?: string[];
  status: 'draft' | 'published';
  dataConfig?: {
    charts?: ChartConfig[];
    tables?: TableConfig[];
  };
}

// 报告详情数据
export interface Report extends BaseReport {
  id: string;
  createdAt: string;
  updatedAt: string;
  createdBy: string;
  publishedAt?: string;
}

// 报告表单数据
export interface ReportFormData extends BaseReport {}

// 图表配置
export interface ChartConfig {
  id: string;
  type: 'line' | 'bar' | 'pie' | 'radar';
  title: string;
  data: any;
  options?: any;
}

// 表格配置
export interface TableConfig {
  id: string;
  title: string;
  columns: {
    title: string;
    dataIndex: string;
    key: string;
  }[];
  data: any[];
}

// 报告查询参数
export interface ReportQuery {
  type?: ReportType;
  keyword?: string;
  status?: string;
  startDate?: string;
  endDate?: string;
} 